rest-url.js ➔ restUrl   A
last analyzed

Complexity

Conditions 2

Size

Total Lines 11
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 11
rs 10
c 0
b 0
f 0
cc 2
1
// Rest
2
// formEvent
3
function restUrl(url, classname, error, success) {
4
5
    var rest_form = new Rest(url, '?', error, success);
0 ignored issues
show
Bug introduced by
The variable Rest seems to be never declared. If this is a global, consider adding a /** global: Rest */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
6
7
    var forms = document.getElementsByTagName('form');
8
9
    // console.log(forms);
10
    for (var i = 0; i < forms.length; i++) {
11
        formEvent(forms[i], rest_form, error, success);
12
    }
13
}
14